package duckcase;

import duckcase.duck.MuteDuck;
import duckcase.duck.RubberDuck;
import duckcase.duck.SimpleDuck;

/**
 * description:
 *  鸭子为例展示策略模式的使用
 * @author yuanmenglv on 2019/11/25
 */
public class Client {
    public static void main(String[] args) {
        SimpleDuck simpleDuck = new SimpleDuck();
        simpleDuck.display();

        System.out.println("-------------------------------------------------------------------------");
        RubberDuck rubberDuck = new RubberDuck();
        rubberDuck.display();

        System.out.println("-------------------------------------------------------------------------");
        MuteDuck muteDuck = new MuteDuck();
        muteDuck.display();

    }
}
